Type.registerNamespace("Telerik.Web.UI.Scheduler.Views.Month.GroupedByDate");
(function(a){a.GroupedByDate.Model=function(b,d,c){a.GroupedByDate.Model.initializeBase(this,[b,d,c]);
};
a.GroupedByDate.Model.prototype={_getTimeFromDomElement:function(b){var c=this._getRawIndexFromDomElement(b);
return this._monthModels[0]._getTimeFromIndex(c);
},_getRawIndexFromDomElement:function(d){while(d&&(d.tagName.toUpperCase()!="TD")){d=d.parentNode;
}if(!d){return null;
}var n=d.parentNode;
var c=d.cellIndex;
var g=c%this._resources.get_count();
var k=n.parentNode;
var j=k.parentNode;
var e=n.rowIndex;
var f=n.cells.length/this._resources.get_count();
var l=Math.floor(c/this._resources.get_count());
var m;
var b;
var i;
if(this._isVertical){m=l;
b=j.rows.length;
i=e;
}else{m=e;
b=f;
i=l;
}var h=(m*b)+i;
return{modelIndex:g,dayIndex:h};
},_getRenderer:function(){if(!this._renderer){this._renderer=new $TS.Rendering.DateGroupedMonthViewRenderer(this);
}return this._renderer;
}};
a.GroupedByDate.Model.registerClass("Telerik.Web.UI.Scheduler.Views.Month.GroupedByDate.Model",a.GroupedByResource.Model);
})(Telerik.Web.UI.Scheduler.Views.Month);
